<?php

namespace Trawind\Remotes\Contracts\Repositories\Account\Config;

use Prettus\Repository\Contracts\RepositoryInterface;


/**
 * Interface CommonRepository.
 *
 * @package namespace TrawindCloud\Contracts\Repositories\Account\Config;
 */
interface CommonRepository extends RepositoryInterface
{
    /**
     * Create or modify common configuration in batches
     *
     * @param array $configs
     * @return mixed|void
     */
    public function saveConfig(array $configs);

    /**
     * Get the current cache configuration, update if there is none in the cache
     *
     * @param string $service
     * @param string $module
     * @return mixed
     */
    public function getData(string $service,string $module);
}
